<?php echo form_open('gate/login', array('class'=>'login')); ?>
	<?php if($this->session->flashdata('message')==""):?>
		<strong>User Login:</strong>
	<?php else: echo $this->session->flashdata('message'); ?>
	<?php endif;?>
	<p>E-mail: <br /><?php echo form_input(array('name' => 'email', 'class' => ''));?> </p>
	<p> Password: <br /><?php echo form_password(array('name' => 'password'));?> </p><br />
	<strong>What are you:</strong><br /><input type="radio" name="usertype" value="student" <?php echo set_radio('usertype', 'student', FALSE); ?> />&nbsp; Student <input type="radio" name="usertype" value="teacher" <?php echo set_radio('usertype', 'teacher'); ?> />&nbsp; Teacher<br /><br />
<?php echo form_submit('login', 'Login');?>
<?php echo form_close(); ?>

</body>
</html>

